﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;

namespace CodeDomHelper.CodeDom
{

    [Serializable()]
    public class CExample : CDocRoot
    {

        public CExample()
            : base("example")
        {

        }

        public CExample(CDocRoot comment)
            : base("example", comment)
        {

        }

        internal override bool Unique { get { return true; } }

        internal override string Serialize
        {
            get
            {                
                StringBuilder s = new StringBuilder();
                s.AppendLine(BaliseStart);

                s.AppendLine(Value);

                foreach (CDoc a in Nodes)
                    s.AppendLine(a.Serialize);

                s.AppendLine(BaliseEnd);

                return s.ToString();
            }
        }

    }


}
